class Wave
  
  def initialize(enemies)
    @pirate1 = Gosu::Image::load_tiles($screen, "media/pirate.bmp", 40, 45, false)
    @bigrocks = Gosu::Image::load_tiles($screen, 'media/bigrocks.png', 30, 30, false)
    @rock1 = @bigrocks[0]
    @rock2 = @bigrocks[1]
    @asteroid1 = Images['media/asteroid01.png', false]
    @asteroid2 = Images['media/asteroid02.png', false]
    @asteroid3 = Images['media/asteroid03.png',false]
    @enemies = enemies
  end
  
  def generateSpreadWave(number, x)
    number.times{
    @enemies.push(Enemy.new(@pirate1[0], x, -30, 0, 6, 2.5, 20, 1.0, 1.0, 20))
    x += 60}
  end
  
  def generateLineWave(number, x)
    @y = -30
    number.times{
     @enemies.push(Enemy.new(@pirate1[0], x, @y, 0, 6, 2.5, 20, 1.0, 1.0, 20))
     @y -= 60}
   end
   
   def generateAsteroidField
     @enemies.push(Enemy.new(@asteroid2, 280, -30, 1, 20, 1.0, 27, 1.0, 1.0, 10))
     @enemies.push(Enemy.new(@rock1, 400, -40, 6, 10, 2.0, 20, 1.0, 1.0, 5))
     @enemies.push(Enemy.new(@asteroid3, 350, -100, 2, 25, 1.0, 30, 1.0, 1.0, 10))
     @enemies.push(Enemy.new(@asteroid1, 150, -150, 1, 30, 1.0, 37.5, 1.0, 1.0, 15))
     @enemies.push(Enemy.new(@rock2, 500, -36, 5, 10, 2.0, 20, 1.0, 1.0, 5))
     @enemies.push(Enemy.new(@asteroid2, 490, -80, 3, 20, 1.0, 27, 1.0, 1.0, 10))
     @enemies.push(Enemy.new(@asteroid3, 180, -60, 2, 25, 1.0, 30, 1.0, 1.0, 10))
     @enemies.push(Enemy.new(@rock1, 230, -25, 1, 10, 2.0, 20, 1.0, 1.0, 5))
     @enemies.push(Enemy.new(@asteroid2, 315, -250, 3, 20, 1.0, 27,1.0, 1.0, 10))
     @enemies.push(Enemy.new(@asteroid1, 425, -190, 3, 30, 1.0, 37.5, 1.0, 1.0, 15))
     
  end
     
end